﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FirmaTransportowa
{
    public class AdminPanelPresenter
    {
        private User user;
        AdminPanelForm adminPanelView;

        public AdminPanelPresenter(User user)
        {
            this.user = user;
            this.adminPanelView = new AdminPanelForm(this);
            this.showLoggedUser();
            this.adminPanelView.Show();
        }

        private void showLoggedUser()
        {
            adminPanelView.adminName.Text = user.worker.name + " " + user.worker.surname;
        }

        public void clean()
        {
            
        }
    }
}
